Rename middleware 'params' method to 'transform_params'