Moving commit utils to common/util.js.