Refactor appSetting config.