Yes, there is.
The spell Greater Bestow Curse (Dragon 348, p35) has a number of greater curse affects listed. Like the Bestow Curse spell, it indicates that one may invent their own curses, that are in line with the existing effects of the spell.
The accompanying article ("Bestow Curses" Dragon 348, p34-36) lists variant curses for both the original Bestow Curse spell, as well as for the Greater version.
One of the possible valid variant curses for the Greater version is to lose a class feature and any subordinate features or feats that are tied to that class feature.
This could be quite painful, depending on which class feature is targeted.
It is important to note that this will change not only how a class works, but potentially impact your entire game. For example, the Greater Curse could be used to remove harmful class features such as the Wilder's Enervation, the Beserker's Frenzy, the Warhulk's No Time To Think, and so forth. As such, check with your DM prior to implementing and it might be best to have a good reason for the effect to exist in your backstory or roleplay.
One possible example of making the idea of removing a harmful class feature into an interesting story effect, could be a Warhulk who is cursed to lose No Time To Think as well as being cursed to be a pacifist, or to have an extreme moral conscious regarding causing others pain or death.
Play nice, coordinate carefully with your DM when seeing to customize classes and class features in D&D.