[Refactoring] Refactored ERDGenerator with interpreter layer