Extracted State Machine Coordinator and initialized basic flow logic