Refactor the barclamp catalog parsing into a separate class