first step to make pluggable notification service. this moves a bit of the pipeline code from service to the pipeline itself. Change-Id: Ibcd803c8ffd42c59d1f2e2b53234ae42dc588c16