Factor out collection profile to YAML.