refactor links.rake