Hi @jarvis
Thanks for the mail.
You may consider adding the filter dynamically only when loading that specific form.
If that form is only used on a specific template file or page, you could introduce check for the same inside the method before modifying it.
Hope this helps.