Refactoring repositories.