Simplify shim generation.