Use lodash to reduce code in lib/minify.js.