Cleanup serviceurl

This PR because there is a confusion on where we should define the protocol.