Removal of pharmaceutical contaminants through membrane bioreactor