Fixes #8658 - make smart_proxy optional

This is not quite true. This only configures if it should set a dependency on the proxy registration.