Extracted constants in DateTimePair.
Refactored conditions in AddCommand.