flatten nested list comprehension
remove unused variable ES_QUERY_CHUNKSIZE
add get_timestamp to utils
move reporting code out of elastic.py
create count, time pairs in single function
remove unused imports
use existing function
use list() instead of list comprehension
remove inline imports
fix missing filters, pass to es_histogram in a simplified way
remove argument shadowing, add pep8 fixes
simplify histo_data function call
move helper functions out of get_general_stats_data
apply default user filters in new indicators
Merge pull request #4409 from dimagi/more-refactoring

More refactoring