Refactoring Twitter bot and Twitter rules controller for more readability