This was copy-pasted from `Histogram`. Instead this, and the `Histogram.searchFacets` should be moved into the `ElasticSearch` service.