Factor out paste URL generation