slim down notification class, move logic to example