[!!!][TASK] Remove deprecated code from DocumentTemplate