Yes, this is a good idea to refactor this part and make a macro.   I will look at this.  

I had to use the paragraph pseudo selectors in many instances because cnxml doesn't support using a class on para tag.  I never could get that to work.  It would be very very easy to fix the stats lab sections if this was the case.