ClientModeImpl#connect, save: move code into helper methods

Moved code into helper methods to prepare for the next
stage of the refactor.

Bug: 138403307
Test: atest FrameworksWifiTests
Change-Id: I0d16c3825a8bfda375f840a4e93d0623a9c67dee
4 files changed