Factory repurposing for defense offsets auto job cuts, signaling strategic pivot amid sector layoffs.