Add a setting to Query Panel's Settings UI for specifying query parser (defType).
Clean up code.