refactor and test service and host status domain mapping