FTL: Refactor compileArithDiv and compileArithMod into one function.