Fixes #4286: Refactor code from Rule category repository
Merge pull request #398 from VinceMacBuche/bug/4286/refactor_rulecategory_repo

Fixes #4286: Refactor code from Rule category repository