def clean_painting_url(painting_url):
    """
    Clean the painting url by removing the size specification.

    Might be other things later.
    """
    splitted = painting_url.split('!')
    assert len(splitted) == 2, 'url {} has more than one !'.format(
        painting_url
    )
    return splitted[0]