Rewrite with class-based workflows