Implement DI variant of routes.