Recycling and repurposing chemicals