Convert Root to ES6
Convert PreviousMap to ES6