Move metadata to top of resources