Refactored the category repo to use the new model and added category tree to the carbon ontology class