perf ui: Start breaking down newt.c into multiple files