Refactor a part of CEDocument class