I kind of have to disagree. I have really learned to love the explicitness of a big ole' switch statement. Its fast, no misdirection, all available in one place, and its easily readable where you need it. All of the "clean code" options for something like this I have seen that used more abstraction ultimately just split up the fact you have to keep a list of 100 something hex code values and some value there.