Going for a DO repeat yourself schema with code-based aggregation.