refactored: recaptcha generation