Clean smb_session from unused members, extract sub struct definitions