API for pruning the displayed tree depending on the environment.
Pruning root items. TODO: make name prefix reduction aware of display tree pruning.