DRYing notice code