Canonicalize and autorefactor code.