Unnecessary imports are removed.