Move bool to int conversion to buildParts(), so it also happens for update().