I don't intend for those helper methods to exist by the time the code is ready to commit - they're just there to simplify things if the underlying code starts changing while we wait to inline.  I'm assuming, BTW, that none of this is going to get backported in 3.2.15 - it would be nice to see it, but I'm planning on authoring a comprehensive monkey-patch based on the 4.1.0 code that will work for both 4.0.0 and 3.2.14+.

Something else just occurred to me while thinking about this.  How do we handle nested calls to `disable_referential_integrity`?  Currently we re-enable referential integrity too early (i.e. as part of the return from the most deeply nested call, rather than during the return from the outermost call)!  So I need to make the code behave properly in that scenario (as well as adding tests).