opencl: refactoring after increased comprehension