code: function numberFactory (name, value) {
    const dependencies = ['config', 'BigNumber']
  
    return factory(name, dependencies, ({ config, BigNumber }) => {
      return config.number === 'BigNumber'
        ? new BigNumber(value)
        : value
    })
  }
docs: helper function to create a factory function which creates a numeric constant, either a number or BigNumber depending on the configuration