Baristas in the company’s stores are not included in the layoffs.