Starbucks made the layoff announcement after four straight quarters of falling same-store sales.