[TASK] Adjust to removal of ContextInterface

The ContextInterface in TYPO3CR is removed, thus the code needs to be
adjusted.

See https://review.typo3.org/27868