TrialNerd_Beth said:
It helps to say which part of this you are uncertain about.
Coming at TrialNerd_Beth’s question from a different direction. The shortage clause is the answer to the second question and it is a subtraction rather than an addition. Both exemptions forbid compounding something that is essentially a copy of a commercially available approved product. A product FDA has listed as in shortage is not treated as commercially available, so listing removed the objection that otherwise blocked compounding. It never created a permission; it withdrew a prohibition, which is why it evaporated the moment the supply fact changed.
Worth separating that from compounded supply, which this thread keeps folding into the same question. They behave differently and the advice does not transfer.