Clean up routing table helpers and API

The current routing table helpers are a bit clumsy and we have to manually wrap them around routing tables. We can do better.