Remove unused dependencies.