Remove obsolete references.