remove all non-core parts from main plugin instance