Reduce number of data-ensure loops and variables

I realise this doesn't achieve much, but it does reduce the number of data-ensure loops and tidies things up a bit. Is there any reason to use `\displaystyle` other than to make the fractions larger?