Remove style info from spantree.