clean ql_treeplan class