Improve reusability of MemoryModelSetSupport.

Change-Id: Iae70fed490b829814df06332ffdcb0afd1b4307c