Remove duplicated code in favour of a helper (which can be further shifted onto a model or status-changer later)
Merge pull request #5 from CloCkWeRX/upstream

Refactor changeStatus() a little to DRY