Stopped using deprecated middleware