Replace the department id field with the field collection field.
Update entity module.
Adjust the module for using the field collection.