Refactor app_domain to appDomain