remove export of spi outside of service