flush method's size was reduced, by creating new one responsible for LogMsgGroup building.