extract plugin parsing into utility method