Refactored :extract_truncated_link method