At the moment we don't have a public API for anyone to call that
does the same thing. You're not alone in having to endure those
warnings. We haven't had the time to design a good, clean,
replacement for any of that. That's the recommended mechanism for
now (as long as you're releasing the model!).