Refactor menu_common_setting_set_current_fraction