Refactor CheckBoxSetting