This reduces code duplication in the different ConfigControls. This is helpful for the next commit, which will modify the now deduplicated code.