motion vector refactoring