Move the logic of computing for the correct hash needed by cal-heatmap into a class/helper/method of its own.