Starbucks Corp. is betting its future on its coffee shops.
To do that, the Seattle-based company has removed a distraction by selling the rights to offer its coffee and tea in grocery and retail stores to Nestlé SA for more than $7 billion.
Coffee sellers from Dunkin’ Brands Group Inc. to McDonald’s Corp. have crowded supermarket shelves...