Code

Refactor toggle_date_option into a generic enum_map based toggler