Subtree restructuring