Refactor RunBase framework wrapper (feature #4)

Special for @sapien2