Move reddit API wrapper to separate module