Wouldn't it make more sense to put these methods in the controller? It's the only place they are used, their implementation is intimately tied to the regexs used in the controller method, and it will having to jump through hoops with `view_context` to call them.