Extract duplicate code into method.
WIP on some WPNs improvements that I can't be arsed to finish right now 'cus it's boring. YOLO