Refactor for migration of created_time field