Move Reddit functions into classes according to scope.