refactoring: pulled out a method for creating notifications