PIMS-1832 Refactored "generate identifier" code into its own
service since all other services depend on it.