Remove unused previous_position.