This change centralizes the URL generation logic for email verification and password reset, improving maintainability.