Create and call format category method
Refactor some methods calling formatCategory