Removes unused dependencies