There's an upside though: millions of combustion engine powered cars are also going, and enclosing depleted batteries remains in leak proof tanks after recycling materials seems a lot easier than doing the same with combustion engines byproducts.
I don't want to sound too optimistic, as there always will be shady figures trying to profit from illegal dumps, but with proper regulation and enforcement it doesn't look like a bad deal to me.