Move Twitter logic to model