refactoring ifttt