Move attribute nesting in ESRI indicator to own function