Refactoring methods on links