refactor work_group_info for kernels