Should not be hardcoded. See how it's done for WMTS.