Moving 1-1 link code to function

Now it can be easily called elsewhere if necessary, just need to know
what the active form relationship (frid) is, and the form where the new
entries were written, pass those in and it will "just work."