RepositoryFactory injection, resource services generation