constraints: move MotionContext out, make the current tests use it.