Updated RouteCompiler to produce Route objects.