Maybe we can convert this to a `Util` function?