Removes unused dependencies.