def METHOD_NAME(spec, factory_context):
    wrapped = LocationTypeSpec.wrap(spec)
    wrapped.configure(
        location_id_expression=ExpressionFactory.from_spec(wrapped.location_id_expression, factory_context)
    )
    return wrapped