This is probably planned, just leaving a note here in case. We should probably use `functools.wrap` here and for `ensure_params` below like we did in #769.