Use appropriate type when recreating routes for nested_routes