Refactor configuration
Convert domain events to groovy beans.