Move mediator to pipeline namespace