Fix push_to_twitter bug and clean factory