Moved link helpers into a separate module.