Allow providing the defaults dictionary to override.