Repositories, Interfaces and Inheritance