This one is also common enough to be moved into util.