template refactor policies
we have two editable templates and both allowing two components which are mentioned below.
now instead of defining these component two policies in each template policies. how can i refactor to add at single place and refer and refactor the code?
<carousel
cq:policy="abc/components/content/carousel/policy_hero-carousel"
jcr:primaryType="nt:unstructured"
sling:resourceType="wcm/core/components/policies/mapping"/>
<mediahero
cq:policy="abc/components/content/mediahero/policy_episodepage_mediahero"
jcr:primaryType="nt:unstructured"
sling:resourceType="wcm/core/components/policies/mapping"/>
