refactor mootiro migration