Refactor (once again) rsa-find.