Refactors DebugKit inclusion logic.