Refactoring for selecting log types in toolbar