protected function removeDeprecatedProperties(array $contextProperties) { if (isset($contextProperties['locale'])) { unset($contextProperties['locale']); } return $contextProperties; }