Break get-link-contents into utils