refactor-flow

Improve code quality, reduce technical debt, restructure for maintainability

refactor
flow