Moved provider loading to the repository.