remove unneccessary calls to getMapConfig() within the same method