i'm not sure of the criterion for inclusion in `util` vs. `resources` modules, but shouldn't this function be in the latter?