buffer_tree: Add code to splice out a node of the buffer tree.