Structural tree pruning