Clean up the coding in byteCodeGenerator.