Squeezing Map and MapFile class into one, removing redundant code.