updating the compaction options codepath to use native metadata rather than query system tables