The same way we do it with other resources of this type. And yes, we do this with other resources. Oil & gas, medical marijuana, diamonds, et al.
This is a solved problem. What you and other people are arguing is that it's not solved perfectly.
I don't really give a shit if it's solved perfectly. If we go from say 66% of cobalt being bloody down to 33% of cobalt being bloody. That's a win. We can, over time, learn and adjust to bring it down even further.
Perfect is the enemy of good.