Decoupled routes from controllers by using a controller as a service.