Extract old name outside of LocalDef.
Rename OptEnv.localReps to localDefs.