Prune dependencies