Put BaseAdminEntityRepository to a trait