Reuse code for set config options