notification_template refactoring