Updated RepositoryFactory.cs file.