Large refactor of single-file groot server into automators