Refactor incoming SMS processing into task