Remove unused references.