Set appropriate stacklevel values for deprecation warnings.