Merged implementation into a single DurationFormat class