Abstract out the Html templates for Metadata without impacting
performance.