Change event dsl and extract transition methods.
Remove duplication from events observer.