Remove unused traversals.