Improve c++11 move in function with 2 params.