Refactor shared code into a single function/model
Refactor shared code into a single function/model

tadhg-ohiggins/regulations-parser,eregs/regulations-parser,eregs/regulations-parser,tadhg-ohiggins/regulations-parser