This works because of the additive nature of css classes: setting class => "" is the same as not setting class at all.

I didn't do the bit with the spans as i didn't know why it's even there but you could apply the same technique. Although it would then become less readable (and therefore worse, readability is better than dryness imo) than what you had to start off with.