There is a class `\Magento\Catalog\Setup\CategorySetup` which takes care of setup for `catalog_product` and `catalog_category` entities. This name is confusing and better name would be `CatalogSetup`.