Pretreatment technologies, Primary processing