Cleanup the TreeBuilder class. The DOMTreeStructure is responsible for maintaining the tree representation of the DOM.