First pass at extracting registered Notifications callbacks into a helper function. More to do here. See #5300.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@7711 cdf35c40-ae34-48e0-9cc9-0c9da1808c22