TopologyOnly function

Remove metadata from trees