Can this map creation not be moved in some method to reduce the size of this method.