[Form] Refactored EntityChoiceList and ModelChoiceList

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Fixes the following tickets: #6618

This commit adds a new abstract base class for both the EntityChoiceList and ModelChoiceList classes.