Move route class resolver to the container so it's easier to modify in case the developer wants to use a custom Route class