Restructure region tree building.