Simplify middleware creation.
0.4.2