Does it matter for this purpose? I have a hard time imagining that your business raises capital and has an exit, where QSBS will come into play.
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.
Franchising is mostly IP and distribution depending ??