refactor get_routing_event