Refactoring repositories (finished admin sale)