Moved field mapping generation code into ElasticSearchMapping class