Refactor our getDomainsOfUser