Adapt plugins to Core change (#695).

Inject service dependencies

See #695.