Move daysInYear, isLeapYear, makeDate, makeUTCDate, and dayOfYearFromWeeks to their own modules.