Refactor the catalog thread views business with a class.