g3-common: Remove more duplicate kernel scripting