Hiding a class from the class change menu (Yanfly)

Anyone know a way to hide primary classes from the subclass menu? Even if it's noted as a Primary class only, it still shows on the selection menu, though grayed out. It would look so much better if I could remove it entirely.
I've been having the same issue as well.
I really hope someone could help.

Original thread: https://forums.rpgmakerweb.com/threads/hiding-a-class-from-the-class-change-menu-yanfly.125424/