Issue #2278051 by yched: Remove uses of non-existing 'max_length' setting on EntityRef fields.