Refactoring links using Hal