We could replace this block by `field :resource_owner_id, :type => mongoid3? ? Moped::BSON::ObjectId : BSON::ObjectId`.