Unify the way domain is created