Considering using `std::copyable_function` or `std::move_only_function` in replacing `std::function`.