Restore to lower priority settings
Rather than restore a setting to XML or domain defaults, first, try to restore to a site setting. If a site setting isn't available, restore to the application defaults.
This applies to all proxies. Transfer function proxies are handled specially, but function in the same way.