Factorizes the code managing cursor positions (list comprehensions, enumerate).