Add a function to fix redundant import warnings