That's what I was asking myself. But like this, ol is capable of replacing the corresponding string in the wmtsGetTileUrl string.

We could do the replacement for format and layerid here...