Kobo Aura H2O detection: slight code refactoring.