How to create a category on a module setup?

A post was split to a new topic: Source class “\Ocodewire\Designtool\Setup\CategorySetup” for “Ocodewire\Designtool\Setup\CategorySetupFactory” generation does not exist