Replace redundant low level calls with Compiler.compile().