classicons: refactored class enable/disable code.
Merge pull request #197 from Adirelle/classicon_cleanup

Reduced copy-pasta in classicons.