refactor: per comment in code, moved the unique id function into a profiler file.

Simple refactor for getUniqueId