Remove obsolete code in DomainRepository