Cleaned up rest client as using old brms 5.3 methods.