This patch moves MoveOnly to a header file so that I can use it from another .cpp file. Differential Revision: https://reviews.llvm.org/D139781