Refactored DurationFormatter into util package