simplify repository instantiation