User blog comment:Catinthedark/Infobox level: killing the massive switches/@comment-3225604-20150705085205/@comment-4189499-20150706010837

I've had a look at what you've done. By using B, you can eliminate the need for those switch statements to determine the colour of the background as the template does it itself, thereby eliminating the need to repeat code which in turn makes it easier to maintain.

I'm just going to go ahead and lower the protection on Module:Difficulty level for you to fix that up as I am not sufficiently advanced in programming to know what needs doing there. Is the problem something that's actually wrong, or does it just impact on efficiency?