x86: abstract out obtaining of a template's mnemonic In preparation for changing the representation of the "name" field introduce a wrapper function. This keeps the mechanical change separate from the functional one.