Reduce cyclomatic complexity
[WIP][API] Sum data