refactoring: simplify guid generation