Yet more refactoring of exception handlers to get_locator_obj (WIP).