move some code from `status` command handler to the `chewy` module, so it will be reused by `update` command