Reduced code redundancy in flash messages