Make small refactoring in gesture analyzer.