I imagine that you’ll have to do the same for any other sites where you are using WPForms.
I have to say that this has not been very well handled by the plugin vendor. When are we likely to see an update that fixes this issue rather than requiring a workaround? I don’t want to have to keep bodgy code snippets lying around in my config files.