Moved link parse functions to helpers