The biggest job cuts at the company for decades are part of an effort to revive growth.