https://github.com/Katello/katello/pull/4015/files#r12129939 would also help here, comments could be removed. It would be helpful not to have colors dictionary encapsulated in this method, but accessible from outside and including the 8th status defined failing on unknown state not returning green as everything is fine.