Optimized business logic for prepare contact upsert step, removed redundant date utils classes