Remove case in favor of if.
Test multiple element[:class, :suffixes].
Handle class suffixes with set-based logic rather than stack-based logic.