Helper functions for extracting terminus and "normal"  links