Refactor and document when certain invalid inserts happen