Use anonymous type pattern for Idempotent model