I've already seen similar method elsewhere, https://github.com/Katello/katello/pull/1592/files#L66R66. I would make it DRY. It also looks to me like content_view should be responsible for this kind of consistency check for all its similar associations.