Squashing multiple pieces of middleware into a single one.