Move rp2 payload generation to module