WARNING! I am not an animator. I am an animation programmer. There are probably better, more efficient ways to do this. However, this does work.
In this tutorial we will explore how to cleanup the root motion of your mocap animation for better use with ‘Motion Matching for Unity’. A stable root is vital for good motion matching, so this is worth doing.
Youtube original link