Deplicate InvocationMetadataFacotry#createInvocationMetadata.