(maint) Refactor duplicate code in macosx

Prior to this commit the macosx facts contained duplicated code for
resoluton of hardware overview and the os overview. This commit
refactors that code into a common block.