ecs reporter: Move some code around to break up large function
ecs reporter: Move some code around to break up large function

weaveworks/scope,alban/scope,weaveworks/scope,weaveworks/scope,paulbellamy/scope,kinvolk/scope,alban/scope,kinvolk/scope,alban/scope,alban/scope,paulbellamy/scope,paulbellamy/scope,alban/scope,weaveworks/scope,kinvolk/scope,weaveworks/scope,paulbellamy/scope,alban/scope,kinvolk/scope,paulbellamy/scope,paulbellamy/scope,kinvolk/scope,kinvolk/scope,weaveworks/scope