Clean up metadata specification