Hide last-id implementation via gen-id API.