Move Run status conversion to its own class.

Makes things a bit easier to follow by encapsulating the logic in one place.