Remove ElasticSearch global, pass it as argument

I think it could be done more nicely.. But it seems to work.
I don't think a `None` is a valid value here. I think this should be a positional argument with no default. No?