Remove ElasticSearch global, pass it as argument
Pass es as keyword argument es_