Remove refs cleanly in ForeachNewRev.pm