DRYed up multiple totalizing forEaches