Your solution is what I was about to recommend. The default code snippet is generic code that looks for all drivers and disables their subscriptions. By replacing that code with the code you have, it makes it more specific to the drivers in your application. If you add more driver instances, you will just have to remember to add them to the code if you want them to stop on hidden.