FWIW, this `switch` will disappear in the future if this patch is accepted:

https://codereview.appspot.com/81290043/