Reduce :imports to only what is needed.