refactor: move the unique id function into a new profiler file

Simple refactor for getUniqueId