Fix create method signature in MessageFactory