Fixed create_metadata method to use package objects for config.