DRY refactoring for CRUD
Category permissions fix