Improve readability of the check_recursionquota() function by replacing a sequence of conditional statements with a switch statement.
Improve readability of the check_recursionquota() function by replacing a sequence of conditional statements with a switch statement.