Get rid of 'kernel_version' global variable