move tree concerns into locale_tree.rb