As you realised the extrusion of the filament is not the problem. Rather problematic is the cleanliness of the raw material. If you shredder your prints and produce new filament from this granulate you incorporate a lot of dirt which makes the filament bad.
In professional plastic manufacturing, pieces are shredded, washed and then admixted to new material.