Extract methods to cleanup ExtensionsModel.

This commit removes a lot of duplicate code between getExtras and
getExtrasData.