Lithium refinery