Remove needless packages from dependencies