Remove instanceof check in dynamodb-doc