Rearrange github link helpers

So that regex and transformation appear together.