Move Oid filtering out of JSON and into Mongo.