Moves the last pieces of code to its own header. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D133665