Factored out checkForDuplicateOrganizations

Separate method for checking for duplicate organizations, allowing
client code to check asynchronously (without a submit).