Replace one more `elif` chain with dict
Replace lots of `elif` in editor with dictionary lookup