remove useless classes and clean up component scan package scopes