Mega KGSL code cleanup