removes unneeded imports and constants