Fixes #1307: move batchInsert() to base class.