More refactoring of mouse settings.