Instead of functions for each gcode generator, one function that processes common changes plus specific for each test. Much less code and easier to add future tests.
All forms now generated from a single function. Huge reduction in code and easier to make global changes.