There should be a type -> insertionType mapping somewhere to prevent things like this.