Implement redaction-based hierarchy builder