Move session fetching into its own helper method.
Move session fetching into its own helper method.

aaemnnosttv/wp-cli,2ndkauboy/wp-cli,GaryJones/wp-cli,GaryJones/wp-cli,aaemnnosttv/wp-cli,gitlost/wp-cli,rodrigoprimo/wp-cli,rodrigoprimo/wp-cli,2ndkauboy/wp-cli,2ndkauboy/wp-cli,miya0001/wp-cli,miya0001/wp-cli,trepmal/wp-cli,aaemnnosttv/wp-cli,rodrigoprimo/wp-cli,gitlost/wp-cli,miya0001/wp-cli,trepmal/wp-cli,gitlost/wp-cli,GaryJones/wp-cli,trepmal/wp-cli