REC protein family expansion by the emergence of a new signaling pathway