The recursion helper was a bad idea
Removing superfluous ref passing caused by using for rather than _.each