Put handleInconsistentKeys case as last branch since that should occur less often