Code cleanup in the transition controller.