PIM-2568: Inject RepositoryFactory into object manager and avoid circular reference