Inline _create_notification function