Make `byName` aware of whether it's processing options or config to give slightly more accurate error messages.
email