Vastly clean up the options code for widgets.