Split departmentTypes and objectTypes as two separate arrays to avoid comparing against too many types