Extract routing context to its own file.