Move the volume code into a separate file with the reference C implementations. Add a function to retrieve the volume function and one to install a new one.