Reduces number of arguments to middleware object