First one is the one you have to overlay.Here an example of an article you can use: https://helpx.adobe.com/experience-manager/kb/target-attribut-issue-tag.html
To me what you can do is to have packages, with the right config, and put these into folders like install.prod.author and so on.Then these packages will be installed when the correct runmode is configured.
Can you point me to this object, so I can have a look?It is not listed here: https://docs.adobe.com/docs/en/htl/docs/global-objects.html?wcmmode=disabled