Made refactoring for ConfigSetting.