* Extracted code to create plugin data method