Remove unused index middleware