How about we just write a simple class that groups the necessary things and have one set to `self.ri` and other to `self.ro`?