Replace middleware references with plugin
3.0.2