Revert "Refactor the RelocVisitor::visit method"