diagtool: simplify TreeView diagnostic classification

This utility doesn't need to know about the specifics of diagnostic levels.