options: refactor repeated code in option setting
Merge pull request #436 from pagespeed/jefftk-simplify-option-setting

options: refactor repeated code in option setting