Use provider for setting token format

The other setting triggers a deprecation warning.