remove public methods in SPI classes