Refactor CategorySerializer to avoid awkward polymorphic.