Refactoring opengraph