Cleanup publish() and remote_actor() impls