Better use of inheritance thanks to new repository.exists