Remove shared pointer CompilationUnit.