 
 # Takes WirePattern configuration of a component and sets up
 # Process API to handle it.
-setupProcess = (component, config, func) ->
-  if checkDeprecation config
-    # If we're using deprecated WirePattern features we provide warnings on them
-    # and fall back to the legacy implementation of WirePattern
-    return legacyWirePattern component, config, func
+processApiWrapper = (component, config, func) ->
   # Make param ports control ports
   setupControlPorts component, config
   # Set up sendDefaults function

  if config.field
    platform.deprecated 'noflo.helpers.WirePattern field option is deprecated. Please port Process API'
    needsFallback = true
  return needsFallback

# Updates component port definitions to control prots for WirePattern

    # Produce proxy object wrapping output in legacy-style port API
    outProxy = getOutputProxy config.outPorts, output

    debug "PC: CALL WITH", data, groups, component.params, context.scope

    unless config.async
      # Synchronous WirePattern, call done here
      func.call component, data, groups, outProxy
      output.done()
      return

    # Async WirePattern will call the output.done callback itself
    func.call component, data, groups, outProxy, output.done.bind output

# Provide deprecation warnings on certain more esoteric WirePattern features
checkDeprecation = (config, func) ->
  needsFallback = false
  if config.group
    platform.deprecated 'noflo.helpers.WirePattern group option is deprecated. Please port Process API'
