extract cptcha handler to own method