Refactoring variables in class CategoriaController