Simplify code using idiomatic Emacs Lisp.