How to Automatically Mute Categories When a User Leaves a Group?

If a category is allowed to that group there is no need to mute anything, because there is no access after leaving that group.