Revert "Second pass at removing unused \references."

This reverts commit bd7147be3500e00dc1bcd19584048366655d527f.