Restructure tree.