<!-- Describe what has changed in this PR -->
**What changed?**
* Split sync workflow state logic to dedicated file
* SyncActivityState API managing activity state synchronization
* SyncWorkflowState API managing workflow state synchronization
<!-- Tell your future self why have you made these changes -->
**Why?**
Small file, simpler logic
<!-- How have you verified this change? Tested locally? Added a unit
test? Checked in staging env? -->
**How did you test it?**
existing tests
<!-- Assuming the worst case, what can be broken when deploying this
change to production? -->
**Potential risks**
N/A
<!-- Is this PR a hotfix candidate or require that a notification be
sent to the broader community? (Yes/No) -->
**Is hotfix candidate?**
N/A