No reason it couldn't be a setting, but it would have to be one of the choices in the leaflet-providers library since that syntax is specific to said library.