Use the enclosing namespace to determine whether a definition is an alias
instead of the module.