Reaction Induced Phase-Separation Controlled By Molecular Topology