What made it hard to reuse code? You can just import/export stuff like normal, unless you mean it was hard to find any logic that could be usefully extracted into a helper?
And... I just couldn't figure out a way!
That said, I find checking for specific values in the page against other page values to be really difficult so if you're doing that with the table... good luck!