Refactor the facter ruby into a module.