Factor out udp_listener

[#73149294]

Signed-off-by: Ruthie Byers <rbyers@pivotallabs.com>