and remove related ol.source.WMTS.createFromCapabilities function.
it demonstrates how to create a wmts source by retrieving its configuration from a wmts getCapabilities.