This is an API break since 1.16-rc1. Similar to previous commit. (cherry picked from commit 7962653918)
7962653918