Simplify the program::create_kernel() implementation