I've also looked through the source to help you but as Tommy already said, it's really hard to pinpoint.. what I do know is:
It's not an item limitation
It's not an item unique limitation
It's not an itemenchantmentlimitation
Maybe that will help you to narrow down the area to search in.