simplifiying the part merge logic, extracting magic literals