Prune dependencies.