Move action_max_stack from variable to config.
function system_update_8040() { update_variables_to_config('action.settings', array( 'actions_max_stack' => 'recursion_limit', )); }