Refactor 'longest consecutive sequence'.