LPS-48728 Refactor repository factories and get rid of RepositoryCreator