Moved url shortening into createAdvertisingPacket