Refactored the implementation in Calendar class's following methods: date_today, date_yesterday by moving out the common code extracting day numnber in month from the datetime object to a private instance method day_number_in_month_from_date(datetime_object).

After the refactoring re-ran the specs and the refactoring didn't broke any specs which were passing before this refactoring.