Mouse movement code cleaner