Refactor the routing table.