How to split a long animation sequence into several smaller animation sequences in C++ code?

I have some action animations that belong to a character’s skeletal mesh, and I need to split them into several sub-actions. I previously tried to do this using a Python script, but couldn’t find a solution. Now, I’m attempting to do it in C++ by creating an editor extension plugin, but I still haven’t found a usable solution. I found an API: IAnimationDataController::ResizeInFrames, but it can only remove frames from the end of the animation. Trying to remove frames from the beginning doesn’t work. What is the correct way to do this?