Merge "Move dex exception helpers to their own file and use dex accessor"