We're not using `cls` right? This doesn't need to be a class method then. Why not make it a staticmethod, i.e.,

```python
@staticmethod
def _fix_last_part(part, end_marker):
```