Reorganize piper_ngi code into named module files