Remove unneeded recursion.