Rewrite phrase_tree.go