turnip: move enum translation functions to a common header