This is one beast of a function. There's a lot of repetition in the `add_control` and `add_setting` function calls within, so I'd build wrapper functions for each, then split into separate private functions for each setting+control combo, then fire those from here. 