Issue 536: Expose the default logic of link generation to enable re-using
logic.