Remove executor dependency from StateController.