Since this same exact method appears in each of the top-level Write classes (Insert, Update, Delete) it seems like this might be a good thing to try to pull out.  Perhaps you could take this method and any others that are common to all Writes and put them into a separate module?