Refactor DEPLOY_EMAIL in both app and test code