0740d4e911
* Elasticsearch: Fix top metrics with terms in backend * Refactor to remove cyclomatic complexity
* Elasticsearch: Fix top metrics with terms in backend * Refactor to remove cyclomatic complexity