`impl_runtime_apis!` is not only implementing the apis, it also calls them internally and thus generates the warning. So, we just allow depracted calls in the generated code.