Yes. I might use the API directly instead of wrapping it, if it were a one-time usage, or I might more conveniently attach the wrapper(s) to Class via an implicit class if I were using them all over the place, but that’s just subjective choices. The crucial point to me is that the constant mapping is provided by the std lib already and thus shouldn’t be duplicated in custom code.