This makes it easier to make the second step, which is moving endpoints to a struct instead of a string.
This commit also add more tests in v1beta1/defaults_test.go