Refactoring menu pointer movement.