Moved leap session dependency creation to factory.