I did it differently: I created beforeEnterComposer/afterEnterComposer/beforeEnterThread/afterEnterThread s that afterEnter/beforeEnter keeps the common code only