Plastic Hinge Beam

Hey everyone,
There is a great implementation of nonlinear Timoshenko beams in FEniCS Nonlinear beam model in finite rotations, however, this only accounts for large rotations.
I was wondering if some of you have looked at an implementation of plastic beam elements through a hinge approach, like here in OpenSees OpenSees: Beam With Hinges Element or here a paper on that Plastic Hinge Integration Methods for Force-Based Beam–Column Elements.

If you can give me a hint, whether this type of implementation would be possible in FEniCS, that would be great.

Thanks!