Refactoring Hardware definitions in the firmware.