Template: Move the metadata to an include

/cc @nschonni