The company is betting AI will change its workforce needs and leaning into job cuts as a way to simplify its organizational structure.