InfoBarGenerics: simplify a bit of code