Remove some unneeded references.