Standardize options argument to middleware