Replace gen_*_suffix() with lambdas.

Replace all gen_*_suffix() functions with lambdas because they're more succinct
and waist less space.