Split DomainQuery::getResult and DomainQuery::getEntities methods