Refactoring / simplifying generated html tables (for tolerances)