How do factories produce batteries