Pretreatment by separation of solid or liquid material