Work around a layering violation from Target to CodeGen.