What you can do is break out this logic: https://github.com/eregs/regulations-site/blob/master/regulations/generator/section_url.py#L22-L30 into another method and call that method on self.rev_urls (which is a SectionUrl object).