Refactor defineTransition
Remove duplicated line