The current implementation of removeIndigenousBiologicalMeat filters based on the length of the element code. This is worse than hardcoding as for someone not extremely familiar with all the codes, it's hard to work out why the restriction to 4 character exists.
This should be hardcoded as the various codes - a better solution than what's there now.
In addition, there's a warning and I don't see a reason for one to be thrown.