Revert "remove dead code and orphaned methods for WEB-8859 +review WEBCR-250"

This reverts commit 7b321baff527de984c9cf82ddcd074463d6e41f3.
remove removeFromTOC for WEB-8859 +review WEBCR-250