This is pretty good. We could expose the ref to the template, but since there's no logic it makes it difficult to handle the default master case vs non-master. This seems good enough for now.