Move some methods to TreeObject