BS-11065 : Refactor code to reduce the complexity

- Refactor FlowNodeExecutorImpl