function createDurationTransformer () {
  return new TypeTransformer({
    signature: DURATION,
    isTypeInstance: isDuration,
    toStructure: value => {
      const months = int(value.months)
      const days = int(value.days)
      const seconds = int(value.seconds)
      const nanoseconds = int(value.nanoseconds)

      return new structure.Structure(DURATION, [months, days, seconds, nanoseconds])
    },
    fromStructure: struct => {
      structure.verifyStructSize('Duration', DURATION_STRUCT_SIZE, struct.size)

      const [months, days, seconds, nanoseconds] = struct.fields

      return new Duration(months, days, seconds, nanoseconds)
    }
  })
}
Creates the Duration Transformer
@returns {TypeTransformer}