Extract interfaces for entity classes