Add the backref() function.

There's still a bit of code repetition to be factored out.
.gitlab-ci.yml not found in this commit