Remove unneeded material.