If you rename checkIndexedSubSelects to checkPrimaryKeySubSelect, you can build in the primaryKeyIndexName call and eliminate the 2nd argument which is ALWAYS primaryKeyIndexName(firstArgument) -- less typing for fewer possible typos.