Move traverse to dependencies.