Simplify stub generation