def nicer_type_name(name: str) ->str:
    """
    Make a nicer name for a type.

    :param name: The ugly name
    :return: The nicer name
    """
    if name.endswith('_factory'):
        name = name[:-8] + 's'
    name = name.capitalize()
    return name
