Clean up anaphora resolution.