[POWERPC] Split out the ioid fetching/checking logic