Expert tree pruning and trimming