Extend `_getSyncState` to accept sync state or job.
Refactor getting own sync state out into helper method.