Extract guid creating into a dedicating helper function