This feature might be the only part of the codebase which tightly couples DB queries to Rails ActiveRecord -- I think everything else handles joins via raw SQL. (Not an issue, just a note.)