Wet purification of lithium batteries