Refactor defect link creation in GetDefectPayload