Extract statically setting the REST endpoint into something that can be overridden