[Bug 538011] New: [task] Refactor rest-service/plugins/patch