Refactor open graph stuff in metadata