Second pass at removing unused \references.