Normally we use env_process.preprocess_vm() to handle this.