Refactor UDP scrape into udpScrapePacket and helper methods