Renamed HardwareFactory to Hardware to make the code that uses it more readable.