Extract session initialization to separate class