Move code to initialise struct smb2_create into own functions