refactoring: remove duplicated code

* AuthorizeTwitterPreference and AuthorizeOcPreference do the same