I think we should store the state of the `DeprecationWarning` prior to updating it and then restore it at the end of the `get_params` call. I know this is not thread safe but I don't think we have much choice.