Move C Wrapper code into a separate file.