Let's move this into `utils.js`.