Is it possible to do these more declaratively through the listeners block in the defaults?