replace item (x :: variables) of (item (y :: variables) of (table)) with [thing]
I have implemented my own matrices library (I can share the link if you want), and one thing that really helped was hyperblocks (operators and other reporters take lists and combine them):