Battery production line diversion mechanism