Refactor duplicatited DateTime.now