Hi Adabelle_Leiram,
Yaml anchors do work.
Solved: Reuse code with YAML Anchors and more.
I have an example in one of my blueprints if it helps you.
You can also look into creating a script ot a script blueprint and creating fields, then instead of repeating the code, action a script sending it data and you can isolate the code that way. Sometimes it makes sense to create custom_template macrd and call repeating templates that way.
Lots of possibilities.