Change STWService from class to protocol