Remove irrelvent sections.