Refactor Messages print_installed_kernels