function wrapfunction (fn, message) {
  if (typeof fn !== 'function') {
    throw new TypeError('argument fn must be a function')
  }

  return fn
}
Return a wrapped function in a deprecation message.

This is a no-op version of the wrapper, which does nothing but call
validation.