Break get-link-contents into its own utils module