Refactor calendar category class.