To avoid repetition, can we move this check to the `formatData()` function in `utils/formatting.js`?