Maintenance of 3D printer