Three years after Starbucks Corp. bought the La Boulange baked-goods brand to bolster its food offerings, the coffee giant is closing the 23 pastry shops that came with it to focus on expanding the brand in house.

La Boulange’s pastries and breakfast sandwiches have been central to the growth of Starbucks’s food sales. But running the separate La Boulange stores, located mostly in San Francisco, has become a distraction, according to Cliff Burrows, Starbucks group president for the U.S.

Starbucks acquired La Boulange parent company Bay Bread LLC in 2012 for $100 million, seeking to bolster a food-product menu that had drawn customer complaints for lacking quality and consistency.

Starbucks replaced its own baked goods with the new pastries, wrapped in pink paper marked with the La Boulange label. The rollout in the U.S. and Canada occurred ahead of schedule, and Starbucks since has expanded the brand into lunch sandwiches in an effort to build a bigger midday business. Starbucks reported that food sales grew 16% in the quarter ended March 29 versus the prior-year period and that sales of breakfast sandwiches rose 35%.