Refactor collections/fragments models into updateComponent() function