Moved CAH logic to separate gem.