Refactor and simplify the code reading /proc/cpuinfo. NFC.