[InfoBarGeneric] some code cleanup.