Refactors minify()