reducing update method complexity by further refactoring for memberships controller.