Refactor common code out of fbt_powerpc.c.