The coalition's spokeswoman for defence infrastructure has defected to Pauline Hanson's One Nation party.