Remove helper method and use the one defined on the TreeNode class.