Refactor the logic to parse cpanmeta