Refactoring in identity_summary view