Modifying generic repository