Revert 218406 - Refactor the RelocVisitor::visit method