Remove unneeded dependencies.