More DRY version for subdomain trickery