Refactor: remove statewriter type and all callback for process start Upstream-commit: 26ac05c8bce47fd37c35e43b98cdbcfb65a5c9bb Component: engine