Move PSP parsing functions to separate file, they are far too numerous and long now