Applying first rule of macros on resuce_metadata