@spaceisdarkgreen But here I'm just refering to definition in
en.m.wikipedia.org/wiki/Theory_(mathematical_logic). Just that a formal theory consists by definition of some sentences, that's it. On the other hand, where you wrote "formulas of the object theory that need to be encoded as sets in the background theory" raises a "domain error" problem: If a container consists of formulas you cannot put sets in it .