Instead of duplicating the code here, you could just call `type->nname(quantity)`