Remove duplicate code in petclaw state object.
Merge pull request #281 from ketch/rm_duplicate_code

Remove duplicate code in petclaw state object.