Unite declaration and initialization of max messages constant