The name of this function is a little misleading. Especially having a parameter. I understand that it's setting a flag called "enabled" by reading the code, but the method name reads as "Enable Instance Persistence."

Consider two function, `EnableInstancePersistence` and `DisableInstancePersistence` that only take the `namespace` argument and simply wrap this function, passing the appropriate boolean value.

Up to you though.