Ah, well that's what the defaultSearchEngine setting is for, seems less brittle?

We can still remove the hard coded default as you suggest though.