Couldn't agree more, expand it out.

```ruby
# Unable to respond to notification type, get out early
return nil unless target.respond_to? :notification_type

# No notification type, get out early
note_type = target.notification_type(recipient, actor)
return nil unless note_type.present?
```