Move do_slic adapter function to separate library subproject