Get UFactory for UClass

Hey guys,

I was wondering if there are any functions to get the factory to construct an object by UClass. I have a generic function to construct .uassets in the content browser and want to get the factory based by the UClass.
Something like:

UFactory* factory = FactoryHelper::getFactoryForUClass(UStaticMesh);