`getLinkElements` is almost the same as `getLinkElements`, but I don't think repeat once is necessary to extract them into another function.