Cleanup references.