Removing unnecessary QObject dependencies