[TASK] refactoring of convertTvContentArrayToReferenceElements method