Removed duplicated code with regards to projectID generation.

Just a minor contribution :)