refactor(sync): extract token resetting to its own object