Start refactoring for trello_sort script