Remove unneccesary private method and place it inline with the sole caller.

Validates assumption that it is only ever called when the state is
currently in yaml.