This piece of logic will be duplicated as we add the MMS features that need templates for SMIL docs, etc. I don't want to have this boilerplate everywhere, which lead to this abstraction.