Self-calls must not appear under a function in a tail call. Remove nested blocks during optimization.