Move protocols/types.h content to remote.h