Why do you use Repositories.RemoteRepositoryHistory.Repositories here? Shouldn't it be Repositories.RepositoryHistory?