Separated generation of short_urls from their saving.