Fix `another_contract` not being used warning
Merge pull request #11075 from vipulnsward/remove_record

Remove `another_contract` as it isn't being used
Correctly handle relations as values in where() for polymorphic associations.