Remove irrelevant imports.