Remove unnecessary `enumerate`
Immutable trees simplify some of the recursion.