We can probably figure out a cheaper way to do this, it looks like we're allocating the css classes before we know if we need to use them or not.