In a surprise move, Jack in the Box announced this week it would be closing as many as 200 of its restaurant locations, in addition to possibly unloading Del Taco, a chain it bought just three years ago.

The latest move by the San Diego-based fast-food chain will allow it to focus more exclusively on the Jack in the Box brand, while shuttering underperforming restaurants and raising cash to eventually pay down $300 million in debt, said Lance Tucker, the company’s new chief executive.

The closures, none of which have been announced yet, will be done in phases with the first 80 to 120 to be shuttered by the end of this year. The company is calling its new strategy, “JACK on Track.”

“We expect closing these restaurants will strengthen the overall long-term economics of our franchisees, free up dollars for reinvestment, and allow the system to focus on maximizing performance of our stronger restaurants,” Tucker said during a Wednesday conference call with analysts and investors. “In short, we anticipate this program will better position Jack in the Box for more reliable, consistent, positive unit growth in the future.”

While Tucker did not indicate whether Del Taco is formally up for sale, he said that Jack in the Box is currently working with BofA Securities to explore a potential divestiture.

The decision to sell stores as well as the Del Taco chain comes at a time when fast-food restaurants in general face a number of challenges, including higher wages in California, food cost inflation and, more recently, a pullback in spending by consumers in the face of economic uncertainty.

The new strategy effectively returns Jack in the Box to its roots when the focus was solely on the burger chain. It no longer owns the Qdoba fast-casual Mexican brand that it bought more than two decades ago and later sold. And it could soon be free of Del Taco as well. The purchase of the chain — for $585 million — closed in 2022.

“The problem is they bought Del Taco in the first place and paid too much,” said San Diego restaurant consultant John Gordon. “They hoped that they could sell off a bunch of Del Taco’s company-owned stores and there would be a lot more growth in Del Taco, not just from franchisees but also from Jack in the Box franchisees who would buy Del Taco stores, but that didn’t happen. It was a bet by the prior CEO, but one that didn’t pay off.”

Gordon said he and others have estimated that Jack in the Box overpaid for Del Taco by $200 million to $300 million,

According to the latest financial figures released by the company this week, same-store sales for both brands struggled during the last quarter ending April 13. They were down by 4.4% for Jack in the Box and 3.6% for Del Taco. In all, there are 2,191 Jack in the Box stores, of which the vast majority are franchised. The highest concentration of locations is in California and Texas.

There are nearly 600 Del Taco restaurants, with more than half in California.