Moved yamlize into a library