move strategy creation and passport authentication calls into single function