Add $stream->discard to replace the global nids_discard function.  This brings it a little more in line with the psuedo-"OO" of the rest of the module.