The industry has been grappling with shifts in demand, rising costs and the threat of EVs.