Refactor SPCategory in the User model