Move inconsistencies check into separate function