little refactoring with ModelRepo DI