Use std::move instead of copy for std::function. Fixes warning seen in LTO build.
std::move
std::function