I guess the constant could be defined at the Grocer module level, rather than the Notification class level. Beyond that, I'm not sure the added complexity of trying to generalize would be worth it.