2. Artificial Selectively Permeable Membrane
Otherwise known as an ASPM, the self-assembling molecule will be able to assemble and operate in the presence of a catalyst. This catalyst will cause a chemical reaction that will cause the broken molecules to reassemble. The ASPMs will have to be able to recognize and filter certain toxins by their atomic weight and size.