Externalize getNextID in separate service.
Externalize formatDate in separate service.