Returns true if type should be pruned, even if it is a transitive dependency of a root. In that case, the referring member is also pruned.
Returns true if protoMember should be pruned.