Centralize algorithm of UUID generation