         :merge_conflict => 0,
       })
 
-      link1 = %LinkPatchBatch{patch_id: patch1.id, batch_id: batch.id, reviewer: "some_user"}
-             |> Repo.insert!()
-      link1 = %LinkPatchBatch{link1 | patch: patch1} # fake the preloading of our test records
-
-      link2 = %LinkPatchBatch{patch_id: patch2.id, batch_id: batch.id, reviewer: "some_user"}
-              |> Repo.insert!()
-      link2 = %LinkPatchBatch{link2 | patch: patch2} # fake the preloading of our test records
+      link1 = create_link(patch1, batch)
+      link2 = create_link(patch2, batch)
 
 
       result = Divider.split_batch_with_conflicts([link1, link2], batch)

        :merge_conflict => 0,
      })

      link1 = %LinkPatchBatch{patch_id: patch1.id, batch_id: batch.id, reviewer: "some_user"}
              |> Repo.insert!()
      link1 = %LinkPatchBatch{link1 | patch: patch1} # fake the preloading of our test records

      link2 = %LinkPatchBatch{patch_id: patch2.id, batch_id: batch.id, reviewer: "some_user"}
              |> Repo.insert!()
      link2 = %LinkPatchBatch{link2 | patch: patch2} # fake the preloading of our test records

      link3 = %LinkPatchBatch{patch_id: patch3.id, batch_id: batch.id, reviewer: "some_user"}
              |> Repo.insert!()
      link3 = %LinkPatchBatch{link3 | patch: patch3} # fake the preloading of our test records

      link4 = %LinkPatchBatch{patch_id: patch4.id, batch_id: batch.id, reviewer: "some_user"}
              |> Repo.insert!()
      link4 = %LinkPatchBatch{link4 | patch: patch4} # fake the preloading of our test records


      result = Divider.split_batch_with_conflicts([link1, link2, link3, link4], batch)


        :merge_conflict => 0,
      })

      link1 = create_link(patch1, batch)
      link2 = create_link(patch2, batch)
      link3 = create_link(patch3, batch)
      link4 = create_link(patch4, batch)


      result = Divider.split_batch_with_conflicts([link1, link2, link3, link4], batch)
