Simplify kernel generation.