Apply constraint settings to StaticMeshComponent

In Unreal Editor, I can lock position/rotation directly for a StaticMeshComponent in the Details pane in category Physics, Constraints. In C++ however I only found SetConstraintMode.

Rama posted a wiki entry* how to apply constraints to StaticMeshes by using a UPhysicsConstraintComponent. However isn’t there a way to apply the FConstraintInstance directly to the StaticMeshComponent (without having to use an intermediate component)?

*btw, there are updates for the usage of FConstraintInstance since 4.13