Extract functions to detect long-enough links.