Agreed, it looks a lot like the introspection stuff that @hodgestar did for the RPC stuff. +1 on the idea but I'd rather leave it out of this PR for now.