Refactors utopian_tree.rb