Eliminate some rpc/jedi boilerplate with a decorator