calendarProvider: simplify code, reducing the binary size.