You might want to consider separating the businesses, with the core IP you franchise held in a parent company. Any company-operated restaurants would be separate entities.
Not a lawyer/accountant though, so as always, you should seek professional counsel.