Assemble the filters in friends_format_notifications() dynamically.
friends_format_notifications()
This makes them easier to document.
Props tw2113. See #5970.