Move to utils file under utils/util.js