Convert ObjectId to unicode.
Adapt legislations to refactoring.