chore(cockpit): clean up code inside base plugin

related to CAM-3233