Refactoring of repositories.