Avoid leaking a `data` var in compat/legacy builds.