Construct stub protocol handlers.