Ty1 retrovirus-like element Gag contains overlapping restriction factor and nucleic acid chaperone functions