Remove State Category, apply one more

So this is a hard one to sum up in the title, but basically:

-My game is using the State Categories plug-in by Yanfly, although that may not be entirely necessary for the purposes of what I want to do.
-My game is using systems involving groups of states together as, for example, "Stuns," "Ails," and "Stances." What each does is besides the point, for the most part.
-I want to make skills which will remove a specific group of states, followed by the effects of the skill.
-When a skill is used, the effects box resolves before the contents of the notetags.

Some ideas I've got in mind, and the confusion for me:


a) In the effects box, call to a Common Event which will remove the State Category using just a bit of the Script tool to clear it on the target of the skill.
My lack of experience is the big problem here. While I do have Javascript know-how, it's not an advanced amount (I've coded a Discord bot and have been meaning to make a Twitch bot for hobby reasons), and I feel like this may be more advanced of a solution than is necessary for what I want to do.

b) In the notetags box, I use the "<Remove State Category: [x]>" bit to remove that category of states. Afterwards, I apply the desired state.
Now, I've actually made functional skills with this before. The problem here is that I'm trying to apply a state from that category I am removing afterwards. To explain it better:
-"Disengage" replaces the Guard in my game. It removes the categories of Stuns and Stances, and then applies the typical Guard State which has no category. This is fine and functional, a success. Enemy attacks which remove your Stance and apply something like the Daze status (its category being Stun) also work.
-The problematic skill would be any of the ones which apply a Stance. They will first remove existing Stances (it would be statistically overpowered, janky or contradictory in buff effects, or just silly to imagine being in a stance for sword fencing and also berserk dances wielding a scythe at the same time). Then, they will add another. However, if I use the effects box to add the stance, that resolves before the notetags clear the stances.
I'm just kind of at a loss as to how using the "Remove State Category" option can work with this niche interaction I'm going for, so that's also railroading me.

And a kind of self-defeating point, but here's the fallback:

This is definitely possible. If all fails, I can just use the effects tab (via a Common Event to reuse said effect) to remove each individual state of said category first, then apply the desired one. But that's kind of...brute-force and silly. It feels like there's a cleaner, simpler solution. If there isn't though I'm content with something that works, at least.

Does anyone have any ideas, or should I just use the solution that exists?

Original thread: https://forums.rpgmakerweb.com/threads/remove-state-category-apply-one-more.131336/