Clean up express middleware dependencies