Refactored CodeGenerator and EmailDispatcher Settings to support Environment Configuration