start to convert template
plumb json through
line up lookup table for test levels
factor out test level interpolations
plumb through organisation; enable template
removing bounding conditional
pass links through
redo links; start to pass aggregation types through
add actual function to return just the aggregation types(!)
sort out aggregation type for-loop