Trims kinds that are not included in the registration set

[#76091932]