PartLoader::createPartInstanceForMimeType: Port inlined code from hack
By using the KPluginFactory::create method in the header the qobject_cast is already done and there is not need for the KPluginFactoryHack.
Considering that the usages of createPartInstanceForMimeTypeHelper were inlined the method can not be removed now.