issue #5685: refactor create and ctor functions of transition