It seems to me it actually does not have to be dynamic, as CDNApi will always use the cdn service type.