Production of three-in-one batteries