Refactored sortable, family and task models.