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