Remove analyze_link + associated data structures and test coverage