Brominated flame retardant pyrolysis