Clean up DFS traversals