Clear settings on department deletion

Clear ticket routing settings on topic, email or filter tables on department
deletion.