Refactor for proper handling maxDepth and maxNodes params.
Those are not stored in DB - just some POJO fields