Clean up the code in the sample hardware table code.