Refactoring: removes Tree class.