Extracted OS detection into separate class.
Reworked hardware configuration factory.