Removes credentials, callbacks, and runtime-only values before storage.
Configuration to sanitize.
A new persistable configuration object.
Removes credentials, callbacks, and runtime-only values before storage.