Bug fix.
Transform ASTs to MIR entities.  No more environment references.