Similar method is already present `Host::Managed` see `host_status` https://github.com/theforeman/foreman/blob/develop/app/models/host/managed.rb#L664-L682. It returns untranslated `Strings` which can be directly used here.

I would be also very careful about doing similar "copy-pasting", this one duplicates determination of host status which seems not to be straight forward. This code would break/get-out-of-sync with first change in foreman's `#host_status`. It has high probability of bringing errors/issues in future.