Cleaning up unused references.