extract even more duplication in session store initializer