Ref: split code, do not put everything on Client class See merge request sheepitrenderfarm/client!271