update route_factory service to use Pimple 2 factory method