Fix EZP-21924: [SensioLabsInsight] Refactor LegacyKernelController to be less than 20 lines