Turn menu_action_setting_apply into static function