Refactored enrich_date module.