small refactor to host_conditions_spec