Remove package declaration if the class is out of any packages.
Add support for components to ignore.