Clean up link structure.