Removes redundant imports and duplicated methods