def METHOD_NAME(spec, factory_context):
    wrapped = BooleanIndicatorSpec.wrap(spec)
    return BooleanIndicator(
        wrapped.display_name,
        wrapped.column_id,
        FilterFactory.from_spec(wrapped.filter, factory_context),
        wrapped_spec=wrapped,
    )