Add repositoryFactory to luminous-base.