Update the names of tree classes.