Extract the Minimap creation code out of Map.