Move captcha related func into captcha.go