nit I think that there is a `deprecateMessage` function that would be easier to use/read here.