Rename a method and remove parameters
Refactor logic for categories