Minify and simplify require code.