Decarbonization of lithium batteries