Adding hooks into the route info creation process.