@classmethod
def removeParams(class_, handler):
    """Remove potential GET parameters in the last part within
           p_handler.parts."""
    if not handler.parts:
        return
    last = handler.parts[-1]
    if '?' in last:
        handler.parts[-1] = last[:last.index('?')]
