Remove refs to mediator.