When a complete expression is applied to another situation through resemblance between two situations, it is known as istiara tamthiliyya, or extended/representative metaphor.
Compound figurative usage with a different relation should not automatically be given that label. Not every compound majaz is a representative metaphor.
Representative metaphor compares the structure of whole situations. One must identify the original picture, the intended picture, the similarity, and the contextual indication.