Simplify by using `define-derived-mode'.