Refactor Mouse utility class