Refactoring code to use _praw_call function