Routing-specific data structures distilled into a library for use within other parts of the system